package metier.sess;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import javax.ejb.EJB;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.PersistenceContext;

import metier.entities.Abonnement;
import metier.entities.Client;
import metier.entities.ClientAbonnement;
import metier.entities.ClientAbonnementId;
import metier.entities.TransportCat;
import metier.entities.Utilisateur;

public class ghj {


	  static EntityManagerFactory emf = Persistence.createEntityManagerFactory("PU_Cargaison");
	  static EntityManager em = emf.createEntityManager();
	

	public static void main(String[] args) {

	 System.out.println(em.find(Utilisateur.class, 12).getEmail());
	}

}
